package org.wei.p2p.consumer.service;

import org.wei.p2p.api.consumer.model.ConsumerRegisterDTO;
import org.wei.p2p.consumer.entity.Consumer;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * c端用户信息表 服务类
 * </p>
 *
 * @author wei
 * @since 2022-04-24
 */
public interface IConsumerService extends IService<Consumer> {

    /**
     * 检测用户是否存在
     * @param mobile
     * @return
     */
    Integer checkMobile(String mobile);
    /**
     * 用户注册
     * @param consumerRegisterDTO
     * @return
     */
    void register(ConsumerRegisterDTO consumerRegisterDTO);
}
